//
//  ViewController.m
//  xibDemo
//
//  Created by wanglei on 17/2/4.
//  Copyright © 2017年 wanglei. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];

    CustomXibView *XIBview = [[CustomXibView alloc]initWithFrame:CGRectMake(0, 300, 300, 300)];
    XIBview.backgroundColor = [UIColor yellowColor];
    [self.view addSubview:XIBview];
    
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
